package com.senior.langchain4jailog.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * LLM配置属性类，用于映射application.yml中的大模型相关配置
 */
@Component
@ConfigurationProperties(prefix = "llm.model")  // 绑定llm.model前缀的配置项
public class LLMProperties {
    private String apiKey;      // API密钥，用于身份验证
    private String name;        // 模型名称，对应qwen-plus等型号
    private String baseUrl;     // 基础URL，指向模型服务接口地址

    // Getters and Setters
    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBaseUrl() {
        return baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }
}